package algorithm.quartile;
/**
 * This class represents a Distance that can be measured in the form
 * of a double.
 * 
 * @author Dan Avila
 *
 */
public abstract class Distance implements Comparable<Object>
{
	protected Double distance;
	/**
	 * 
	 * 
	 * @return returns the Double representatation of this Distance
	 */
	public Double getDistance()
	{
		return this.distance;
	}
	@Override
	public int compareTo(Object o) 
	{
		return this.getDistance().compareTo(((Distance)o).getDistance());
	}
	@Override
	public String toString()
	{
		return this.getDistance().toString();
	}
}
